﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="KeyWords.aspx.cs" Inherits="Manager_Ad_KeyWords" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
  <title>金兰广告联合推广中心</title>
  <link href="images/Top.css" rel="stylesheet" type="text/css"/>
  <script type="text/javascript" src="js/KeyWords.js"></script>

</head>
<body>
    <div class="top">
  <div class="logo"></div>
  <div class="topLeft">
    你好，<%=SessionUser.Email %>! <a href="RequestHandler.ashx?ut=custom&action=logout&uid=<%=SessionUser.Email %>" onclick="return window.confirm('确定退出吗');">退出</a><br /><br /><a target="_blank" href="http://wpa.qq.com/msgrd?v=3&uin=1939337318&site=qq&menu=yes"><img border="0" src="http://wpa.qq.com/pa?p=2:1939337318:41" alt="点击这里给我发消息" title="点击这里给我发消息"></a>　<a target="_blank" href="http://wpa.qq.com/msgrd?v=3&uin=2570978789&site=qq&menu=yes"><img border="0" src="http://wpa.qq.com/pa?p=2:2570978789:41" alt="点击这里给我发消息" title="点击这里给我发消息"></a>　<a target="_blank" href="http://wpa.qq.com/msgrd?v=3&uin=2207922598&site=qq&menu=yes"><img border="0" src="http://wpa.qq.com/pa?p=2:2207922598:41" alt="点击这里给我发消息" title="点击这里给我发消息"></a></div>
  <!--页面头部 end-->
  <ul class="topNav">
<div id=NavMain class="nav_main">
<ul>
  <li class=homepage><A id=NavMainHome title=首页 
  href="Main.html">首页</A></li>
  <li class=account><A id=NavMainAccount title=账户信息 
  href="PersonalInfo.aspx" >账户信息</A></li>
  <li class=finance><A id=NavMainFinance title=充值管理
  href="AccountInfo.html">充值管理</A></li>
  <li class=overview><A id=NavMainOverview title=搜索引擎推
  href="KeywordsList.aspx?action=gopage&pageIndex=1" class="current">搜索引擎推广</A></li>
  <li class=overtao><A id=NavMainovertao title=网店推广
  href="ShopList.aspx?action=gopage&pageIndex=1">网店推广</A></li>
  <li class=manage><A id=NavMainManage title=邀请好友
  href="InviteLink.html">邀请好友</A></li></UL></div>
  </ul>
</div>
<div class="topSpace"></div>
  <!-- Main -->
  <div class="main">
   <div class=main-nav>
    <UL>
  <li class=current>搜索推广管理 </li>
  <li class=arrow>&gt;</li>
  <li><%=TitleSearchEngineType%>关键词</li>
  </UL>  
  </div> 
  </div> 
<br />
<table width="950" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="500" rowspan="2" valign="top"> 
	<form  method="post" runat="server" name="form1" id="form1" onsubmit="return checkForm(this);">
        <p><span class="red">提示：只能填写一个关键词，多个关键词请分次提交。</span> </p>
        <input id="AutoID" name="AutoID" type="hidden" value="<%=keyWord.AutoID %>"/>
        <div class=form-item><span class=label>搜索关键词：</span>
          <input id="KeyWords" name="KeyWords" type="text"  value="<%=keyWord.KeyWords %>" class="text w200" maxlength="20" onkeyup="preview(this.id,20)" />
          <span id="Error_username" class="error">20个字符长度</span></div>
        <div class=form-item><span class=label>广告标题：</span>
          <input id="AdTitle" name="AdTitle" type="text" value="<%=keyWord.AdTitle %>" class="text w200" maxlength="25" onkeyup="preview(this.id,25)" />
        <span id=Error_username class=error>25个字符长度</span>  </div>
        <div class=form-item><span class=label>描述第一行：</span>
          <input id="AdDescribe_First" name="AdDescribe_First" value="<%=keyWord.AdDescribe_First %>" type="text" maxlength="35" class="text w200" onkeyup="preview(this.id,35)" />
        <span id=Error_username class=error>35个字符长度</span>       </div>
        <div class=form-item><span class=label>描述第二行：</span>
          <input id="AdDescribe_Second" name="AdDescribe_Second" type="text" value="<%=keyWord.AdDescribe_Second %>" maxlength="35" class="text w200" onkeyup="preview(this.id,35)" />
        <span id=Error_username class=error>35个字符长度</span></div>
        <div class=form-item><span class=label>访问网址：</span>		
          <input name="AdUrl" type="text" class="text w200" id="AdUrl" value="<%=keyWord.AdUrl %>" maxlength="200"/>
          <span id=Error_username class=error>200个字符长度</span> </div>
        <div class=form-item><span class=label>显示网址：</span>
          <input id="AdUrl_Title" name="AdUrl_Title" type="text" class="text w200" value="<%=keyWord.AdUrl_Title %>" onkeyup="preview(this.id,36)" onfocus="copyLinkUrl(this)" maxlength="200"/>
        <span id=Error_username class=error>200个字符长度</span> </div>
        <div class=form-item>
         <span class=label>&nbsp;</span> <input type="submit" value=" 提 交 " />         
          <input type="reset" value=" 重 填 " />
          <input type="hidden" value="submit" name="act" />
        </div>
    </form></td> 
    <td bgcolor="#FFFFFF"><strong> 广告预览 </strong></td>
  </tr>
  <tr>
    <td bgcolor="#E7E7E7"><div class="mr_preview">

        <a href="#" target="_blank" style="color: #00F"><font size="3" id="p_AdTitle">预览标题</font></a><br />
        <span><font color="#000000"  id="p_AdDescribe_First">描述第一行</font><br>
          <font color="#000000"  id="p_AdDescribe_Second">描述第二行</font><br>
    <font color="#008000"  id="p_AdUrl_Title">WWW.JINLANAD.COM</font></span>    </div></td>
  </tr>
</table>  
<div class="bottom">
  <span style="font-family: Arial;">©</span>2012 JINLANAD.COM <a href="http://www.miibeian.gov.cn/" target="_blank">ICP备10001212号</a><br><br>
</div>
<script type="text/javascript">
    var index = document.location.search.indexOf("edit");
    if (index != -1) {
        document.all("p_AdTitle").innerText = "<%=keyWord.AdTitle %>";
        document.all("p_AdDescribe_First").innerText = "<%=keyWord.AdDescribe_First %>";
        document.all("p_AdDescribe_Second").innerText = "<%=keyWord.AdDescribe_Second %>";
        document.all("p_AdUrl_Title").innerText = "<%=keyWord.AdUrl_Title %>";
    }
</script>
</body>
</html>
